package jwt.controller;

import com.alibaba.fastjson2.JSON;
import jwt.util.Analyzer;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
public class AnalyzerController {
    public static void main(String[] args) {
        /*List<String> strings = Analyzer.splitText("D:\\list\\文案.txt");
        for (String string : strings) {
            System.out.println(string);
        }*/
        Map<String, String> analyzer = Analyzer.analyzer("D:\\list\\answer.txt");
        for (String s : analyzer.keySet()){
            List<String> strings1 = Analyzer.ikContent(s);
            System.out.println(JSON.toJSONString(strings1));
        }
    }
}
